<?php

class HeaderComponent extends Component
{
    
    public function __construct()
    {
        parent::__construct();
        Strings::loadStrings("header");
    }
    
    public function initialize()
    {
        return true;
    }
    
    public function render()
    {
        Html::div('id="picture"');
            Html::img('/img/damian-uberti.png', 'Damian Uberti');
        Html::_div();
        
        Html::div('id="name"');
            Html::out('@{nombre}');
            Html::div('id="expertise"');
                Html::out('@{especialidad}');
            Html::_div();
        Html::_div();
        
        Html::div('id="contact"');
            Html::a('href="@{facebook.href}" target="_blank"');
                Html::img('/img/facebook.png', '@{facebook.alt}', 'style="margin: 0 6px 8px 0;"');
            Html::_a();
            Html::a('href="@{twitter.href}" target="_blank"');
                Html::img('/img/twitter.png', '@{twitter.alt}', 'style="margin: 0 6px 8px 0;"');
            Html::_a();
            Html::a('href="@{linkedin.href}" target="_blank"');
                Html::img('/img/linkedin.png', '@{linkedin.alt}', 'style="margin-bottom: 8px"');
            Html::_a();
            Html::p('@{edad-nacionalidad}');
            Html::p('@{ubicacion}');
            Html::p('@{celular}', 'style="visibility: hidden;"');
            Html::a('href="@{mailto.href}"', '@{mailto.anchor}');
        Html::_div();
    }
    
}

?>